首页 \ 问答 \ 如何使用CSS制作边框三角形?(How to make a border triangle using css?)

如何使用CSS制作边框三角形?(How to make a border triangle using css?)

如何创建边框三角形?

在此处输入图像描述

我唯一想到的就是制作一个三角形

    .triangle {
        width: 0; 
        height: 0; 
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 20px solid #8e8e8e;
    }

但这是一个实心三角形,有没有办法让它看起来像三角形延伸边界


How to create border triangle?

enter image description here

The only thing I can think of to make this is to make a triangle

    .triangle {
        width: 0; 
        height: 0; 
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 20px solid #8e8e8e;
    }

But this is a solid triangle, is there a way to make it look like the triangle extends the border


原文:https://stackoverflow.com/questions/47318399
更新时间:2022-10-22 08:10

最满意答案

Eclipse接受VM参数,但这些参数适用于Eclipse平台本身,您需要修改应用程序Launch Configuration以确保它具有足够的内存。

在Eclipse中运行程序时,它会使用默认参数创建一个新的启动配置。 您可以通过选择Run - > Run Configurations .. (或Debug - > Debug Configurations ... )修改这些参数,然后选择相关配置。 如果它是Java主应用程序,则配置将在Java Application下 ,可能具有您第一次运行时选择的类或项目的名称。

选择启动配置,然后选择Arguments选项卡,然后在VM参数窗格中输入相关的JVM参数(即-Xmx512m)。 如果您愿意,也可以输入Program参数传递给main方法。

启动配置截图

更新:尝试传递的另一个参数是-XX:MaxPermSize=128m ,如果您的算法正在创建大量方法和/或类对象(听起来就是这种情况)。


Eclipse takes VM arguments, but those are for the Eclipse platform itself, you need to modify the applications Launch Configuration to ensure it has enough memory.

When you run a program within Eclipse it creates a new Launch Configuration with default parameters. You can modify those parameters by selecting Run->Run Configurations.. (or Debug->Debug Configurations...), then select the relevant configuration. If it is a Java main app, the configuration will be under Java Application, probably with the name of the class or project you selected when you first ran it.

Select the launch configuration, then the Arguments tab, then enter the relevant JVM arguments (i.e -Xmx512m) in the VM arguments pane. You can also enter Program arguments to pass to the main method if you wish.

launch configuration screenshot

Update: another parameter to try passing is -XX:MaxPermSize=128m, if your algorithm is creating lots of method and/or class objects (which sounds like it is the case).

相关问答

更多
  • 从Linux内核文档 : max_map_count: 该文件包含进程可能具有的最大内存映射区域数量。 内存映射区域被用作调用malloc的一个副作用,直接通过mmap和mprotect,以及加载共享库时。 虽然大多数应用程序需要少于一千个映射,但某些程序(尤其是malloc调试器)可能会占用很多映射,例如,每个分配最多包含一个或两个映射。 默认值是65536。 底线:该设置限制了离散映射内存区域的数量 - 本身不会限制这些区域的大小或进程可用的内存大小 。 是的,这是: sysctl -w vm.max_ ...
  • 如果运行docker-machine create --help ,则可以看到创建VM时可以传递的选项。 对于VirtualBox驱动程序,这包括: --virtualbox-cpu-count "1" number of CPUs for the machine (-1 to use the number of CPUs available) [$VIRTUALBOX_CPU_COUNT] --virtualbox-disk-size "20000" Size of disk ...
  • 为了我 long[] l = new long[Integer.MAX_VALUE]; Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit产生Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit PS: 如果您需要为测试目的产生异常,您也可以自 ...
  • Build类有一个名为CPU_ABI的成员,对应于ro.product.cpu.abi系统属性。 它应该给你你正在寻找的东西。 您可以使用正则表达式将CPU_ABI与包含“arm”,“x86”或“mips”的任何内容进行匹配,以涵盖每种CPU类型的所有/大部分变体。 The Build class has a member named CPU_ABI, corresponding to the ro.product.cpu.abi system property. It should give you wh ...
  • 我不知道这是否能回答你的问题,但IBM有一篇关于JVM如何在Windows / Linux上使用本机内存的文章。 I don't know if this answers your question but IBM has a good article about how JVM uses native memory on Windows / Linux.
  • 创建一个如下所示的Rake文件并传递您的选项 require 'rubygems' require 'cucumber' require 'cucumber/rake/task' Cucumber::Rake::Task.new :features do |t| t.cucumber_opts = "*.feature -f json -o cucumber.json" end Create a Rake file like the one below and pass your options r ...
  • 在物理内存中是否与页面边界重叠的内容实际上是连续的,现代内存处理程序永远无法知道。 内存粘合逻辑基本上将所有可寻址内存页面视为无序集合,并且排序基本上与进程相关联; 不能保证对于不同的进程最终被分配相同的两个物理内存页面(在不同的时间点),这些物理页面之间的表达关系将是相同的。 实际上,在CPU和处理这些东西的内存之间有一个转换层。 Whether or not something that overlaps a page boundary is actually contiguous in Physica ...
  • Eclipse接受VM参数,但这些参数适用于Eclipse平台本身,您需要修改应用程序Launch Configuration以确保它具有足够的内存。 在Eclipse中运行程序时,它会使用默认参数创建一个新的启动配置。 您可以通过选择Run - > Run Configurations .. (或Debug - > Debug Configurations ... )修改这些参数,然后选择相关配置。 如果它是Java主应用程序,则配置将在Java Application下 ,可能具有您第一次运行时选择的类 ...
  • 你看过鹦鹉吗? http://www.parrot.org/ Have you looked at Parrot? http://www.parrot.org/
  • 直接来自文档 : Boolean options are turned on with -XX:+

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)