摘要:
1、 超出一行显示省略号(...) 1 { 2 white-space:nowrap; 3 overflow:hidden; 4 text-overflow:ellipsis; 5 } 2、 超出两行显示省略号(...) 1 //两行或多行显示 2 .line{ 3 text-overflow: - 阅读全文
摘要:
直接在代码里理解 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>demo</title> <style type="text/css" media="screen"> .d1{ width:300px; h 阅读全文
摘要:
/*css*/ .d1{ width: 0; height: 0; border-width: 100px; border-style: solid; border-color:#FFCCCC transparent transparent transparent; } /*html*/ <div 阅读全文