border-radius:50%及超过50%的表现形式
web DIV+CSS 2020-07-23 1778 0
关于本站

“最难不过坚持”

本人承接扒站仿站,php网站维护,病毒查杀,网站编辑,网站改版,html制作

有需要网站维护,改版,病毒查杀,网站编辑,网站备案,html制作等相关的工作可以联系我。
本人有多年相关工作经验,也可提供免费咨询,交个朋友。
有需要探讨问题的朋友,也可以加我微信,共同探讨!
微信:15011482830 QQ:408917339

6400642 2611 39
最新评论
https://jueru.net/
评 留言
:weixiao:
评 留言
:shuijiao: :weiqu: :zhenbang: :leng:
评 留言
:yiwen: :yiwen: :yiwen: :yiwen:
评 EasySass: could not generate CSS file. See Output panel for details.
这个业务逻辑多少都有点奇怪了,阅读浏览次数增值在新闻详情页的控制器方法里setInc,这怎么还写进模型事件里了。如果非要用onAfterRead也可以,把新闻文章的内容单独分出来一个news_content表,然后把它和news做关联,然后给news_content表的onAfterRead事件做增值处理,这样点进新闻页内查询到文章内容时才会触发它。
评 TP6模型事件-查询后onAfterRead不好用
文章标签更多
ThinkPHP (254)
Mysql (58)
DedeCms (33)
jQuery (67)
证件照 (1)
setInc (4)
setDec (4)
onclick (5)
打开边栏(ESC) 关闭边栏(ESC)
border-radius:50%和100%的区别
50%与100%表现一样是因为当临角两个弧半径之和超过临接边的长度时,浏览器会按照两个半径的比例缩小至刚好等于临接边的长度。

比如:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试border-radius</title>
    <style>
        body{
            width: 100%;
            height: 100%;
        }

        .container {
            margin: 0 auto;
            width: 500px;
            height: 500px;
            border: 1px solid;
        }
        .circle{
            width: 100px;
            height: 100px;
            margin: 10px;
            background: #1d90e6;
        }
        .circle-1 {
            /*1:1 50px + 50px = 100px*/
            border-top-right-radius: 100%;
            border-bottom-right-radius: 100%;
        }

        .circle-2 {
            border-top-right-radius: 50%;
            border-bottom-right-radius: 50%;
        }

        .circle-3 {
            /*2:3 -> 40px + 60px = 100px*/
            border-top-right-radius: 60%;
            border-bottom-right-radius: 90%;
        }

    </style>
</head>
<body>
    <div class="container">
        <div class="circle circle-1">

        </div>

        <div class="circle circle-2">

        </div>

        <div class="circle circle-3">

        </div>
    </div>
</body>
</html>
from clipboard

.circle-3 {
	/*2:3 -> 40px + 60px = 100px*/
	border-top-right-radius: 60%;
	border-bottom-right-radius: 90%;
}
/*相当于*/
.circle-4 {
	/*2:3 -> 40px + 60px = 100px*/
	border-top-right-radius: 40%;
	border-bottom-right-radius: 60%;
}

参考链接
https://zhuanlan.zhihu.com/p/20128284

版权声明:本篇文章来源于网络。 来源链接

相关推荐
css提示invalid property value
DIV+CSS | 2020-07-23 17654
网上复制了一段css代码,浏览器没有出现预定的样式,按F12打开调试模式,发现css属性前有个感叹号,鼠标经过提示“Invalid property value”无效的属性值,如图 应该是css有错误,后来发现css属性前的空格包含&emsp;“全角空格”,删了就可以了 复制空白粘贴到编辑器,然后切换到源...
css通过父元素选择子元素,选择第一个,第二个,最后一个,奇数偶数
DIV+CSS | 2017-07-27 7455
:first-child 选择器 选择属于其父元素的首个子元素的每个 <p> 元素,并为其设置样式: p:first-child { background-color:yellow; } 例子1 选择列表中的第一个 <li> 元素并设置其样式: li:first-child { backgroun...
评论:0条
评论加载中...
发表评论